package com.hgd.jni;

public class Test {
	public static void main(String[] args) {
		System.out.println(System.getProperty("java.library.path"));
		Cluster cluster = new Cluster();
		int[][] array = {{4, 17, 19, 9, 16, 19, 12, 1, 5, 12, 16, 4, },   
				{20, 14, 18, 5, 2, 5, 4, 15, 11, 7, 4, 14, },    
				{20, 9, 16, 4, 8, 20, 12, 19, 1, 14, 1, 3, }, 
				{12, 1, 8, 10, 12, 15, 20, 10, 11, 3, 20, 17, },  
				{17, 20, 4, 7, 3, 12, 17, 17, 13, 13, 5, 19, },
				{4, 3, 3, 12, 10, 13, 6, 14, 16, 16, 6, 7, },   
				{9, 3, 17, 11, 18, 19, 16, 10, 5, 3, 8, 3, },   
				{2, 8, 20, 16, 14, 1, 10, 12, 7, 15, 3, 12, },   
				{18, 18, 12, 12, 2, 11, 9, 6, 20, 6, 12, 15, },    
				{3, 2, 9, 18, 12, 6, 14, 15, 2, 15, 1, 10, },    
				{13, 1, 6, 1, 10, 18, 11, 7, 8, 2, 18, 8, }, 
				{7, 17, 13, 10, 4, 12, 12, 7, 13, 15, 13, 2, },    
				{18, 9, 3, 10, 7, 13, 2, 4, 19, 16, 10, 2, },    
				{14, 17, 17, 11, 18, 16, 3, 8, 15, 7, 2, 8, },    
				{16, 20, 4, 13, 2, 6, 15, 11, 20, 7, 14, 14, },     
				{1, 7, 12, 14, 15, 3, 19, 6, 5, 20, 2, 8, },      
				{4, 1, 8, 16, 17, 18, 11, 18, 8, 2, 14, 13, },   
				{6, 3, 9, 3, 10, 10, 6, 12, 18, 7, 12, 20, },  
				{18, 11, 12, 7, 13, 18, 16, 10, 14, 10, 12, 17, },      
				{7, 8, 8, 6, 6, 4, 13, 9, 11, 19, 2, 3, },      
				{17, 18, 2, 5, 15, 2, 13, 12, 4, 1, 7, 11, },  
				{16, 6, 1, 17, 16, 14, 17, 12, 6, 20, 9, 7, },   
				{12, 5, 7, 18, 6, 12, 12, 6, 3, 6, 1, 15, },     
				{16, 7, 19, 11, 3, 9, 2, 9, 15, 2, 10, 15, },   
				{11, 11, 5, 20, 20, 1, 2, 3, 3, 17, 8, 18, },     
				{6, 19, 5, 14, 8, 1, 7, 19, 10, 20, 2, 1, },      
				{19, 4, 19, 4, 20, 5, 6, 3, 14, 18, 19, 19, },       
				{2, 20, 4, 4, 13, 3, 4, 4, 12, 3, 20, 16, },    
				{7, 4, 2, 15, 12, 1, 5, 17, 15, 6, 17, 1, },  
				{3, 20, 2, 3, 19, 20, 20, 4, 8, 8, 5, 10, },    
				{12, 4, 7, 7, 11, 9, 7, 11, 9, 9, 10, 18, },     
				{2, 13, 2, 2, 6, 11, 16, 1, 5, 13, 2, 8, },      
				{14, 19, 14, 10, 3, 20, 3, 7, 3, 9, 8, 18, }, 
				{15, 6, 4, 4, 2, 3, 14, 20, 7, 4, 18, 8, },      
				{6, 7, 20, 5, 10, 16, 2, 18, 3, 7, 3, 9, },       
				{15, 15, 10, 9, 7, 4, 19, 8, 2, 6, 2, 12, },     
				{6, 7, 19, 12, 19, 3, 9, 13, 1, 13, 10, 11, },  
				{8, 20, 7, 2, 5, 12, 15, 11, 19, 15, 5, 1, },   
				{19, 5, 13, 3, 15, 2, 1, 15, 18, 12, 11, 4, },  
				{14, 3, 20, 3, 17, 5, 10, 15, 17, 2, 13, 16, },  
				{16, 14, 12, 4, 14, 4, 19, 14, 12, 3, 2, 8, },    
				{3, 14, 14, 5, 13, 7, 15, 3, 15, 1, 7, 16, },       
				{12, 9, 1, 11, 17, 2, 7, 5, 5, 5, 3, 15, },     
				{7, 10, 16, 5, 11, 2, 1, 7, 2, 1, 2, 1, },     
				{18, 10, 18, 15, 11, 16, 20, 12, 1, 6, 10, 12, },  
    {17, 2, 6, 3, 20, 12, 14, 7, 9, 2, 7, 4, },    
    {1, 19, 4, 1, 10, 9, 17, 9, 16, 13, 7, 3, },   
    {17, 9, 14, 5, 15, 9, 20, 9, 9, 8, 17, 10, },  
    {2, 13, 12, 4, 17, 17, 15, 5, 19, 3, 7, 11, }, 
    {14, 4, 4, 6, 9, 4, 10, 8, 12, 8, 18, 14, },      
    {19, 5, 18, 10, 12, 8, 1, 15, 8, 1, 6, 7, },      
    {14, 10, 15, 12, 19, 19, 4, 14, 7, 17, 15, 12, },   
    {12, 20, 15, 12, 1, 19, 12, 7, 16, 13, 8, 2, },     
    {11, 15, 6, 15, 13, 1, 3, 14, 7, 2, 10, 18, },   
    {11, 1, 13, 5, 4, 20, 17, 2, 15, 13, 11, 11, },    
    {16, 16, 6, 19, 3, 6, 18, 10, 16, 4, 11, 17, },    
    {4, 12, 14, 3, 11, 15, 15, 1, 1, 20, 10, 19, },   
    {8, 12, 3, 12, 5, 9, 8, 2, 13, 12, 19, 14, },   
   {14, 10, 15, 17, 1, 12, 8, 12, 7, 6, 8, 9, },   
   {6, 17, 17, 10, 8, 17, 13, 9, 9, 11, 19, 13,}};
		//int[][] array = {{1,2,3,4,5,6,7,8,9,10},{1,2,3,4,5,6,7,8,9,10},{1,2,3,4,5,6,7,8,9,10},{1,2,3,4,5,6,7,8,9,10},{1,2,3,4,5,6,7,8,9,10},
		//		{1,2,3,4,5,6,7,8,9,10},{1,2,3,4,5,6,7,8,9,10},{1,2,3,4,5,6,7,8,9,10},{1,2,3,4,5,6,7,8,9,10},{1,2,3,4,5,6,7,8,9,10}	};
		int[] p = cluster.getTwoArray(array,60,12,8,1000);
		System.out.println(p.length);
		for (int i = 0; i < p.length; i++) {
			System.out.println(p[i]);
		}
	}
}
